/**
 * 用户编辑 add by gsh
 * @param frm
 * @returns
 */
function checkData(frm){
	var isValid = validator(frm);

	return isValid;	
}

FormValid.showError = function(errMsg, errName, formName) {
    for (key in FormValid.allName) {
        var jctr = $('#errMsg_' + FormValid.allName[key]);
        jctr.removeClass("red").hide();           
    }

    for (key in errMsg) {
        var jctr = $('#errMsg_' + errName[key]);
        jctr.addClass("red").show();
    }
};

function btnSave() {
	var frm =$("#qryForm");
	if(!checkData(frm.get(0)))return false;
	var index = msgWnd.confirm("修改app运行配置，会影响app正常运行，确定修改吗?", {
		title : "修改配置",
		skin : 'layui-layer-lan',
		btn : [ "确定", "取消" ],
		icon : 1
	}, function() {
		frm.submit();	
		msgWnd.close(index);
	});
}
